package com.ycc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Map;

/**
 * @Author: ycc
 * @Date: 2021/6/25 22:05
 */
@Accessors(chain = true)
public class Cart implements Serializable {
    private String username;
    private String contentId;
    private Integer amount;

    public Cart() {
    }

    public Cart(String username, String contentId, Integer amount) {
        this.username = username;
        this.contentId = contentId;
        this.amount = amount;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
}
